<extend name="Public/base"/>
<block name="body">
    <div class="admin-main-container">

        <!-- 标题栏 -->
        <div class="main-title">
            <h2>图片列表</h2>
        </div>
        <div class="with-padding" style="margin-bottom:10px;">
            <a class="btn" href="{:addons_url('Slide://Slide/picadd',array('id'=>$id))}">新 增</a>
            <button class="btn ajax-post" target-form="ids" url="{:addons_url('Slide://Slide/picdels',array('status'=>1))}">删 除</button>
        </div>
        <!-- 数据列表 -->
        <div class="data-table table-striped">
            <!-- 数据列表 -->
            <table class="table table-bordered table-striped">
                <thead>
                <tr>
                    <th>
                        <input class="check-all" type="checkbox">序号	                    </th>
                    <th>链接</th><th>描述</th><th>图片路径</th><th>操作</th>					</tr>
                </thead>
                <tbody>
                </tbody>
                <?php foreach($list as $v) { ?>
                <tr>
                    <td><input class="ids" type="checkbox" value="<?php echo $v['id'] ;?>" name="id[]"><?php echo $v['id'] ;?></td>
                    <td><?php echo $v['href'];?></td>
                    <td><?php echo $v['info'];?></td>
                    <td><?php echo $v['path'];?></td>
                    <td>
                        <a class="confirm ajax-get" href="{:addons_url('Slide://Slide/delpic',array('id'=>$v['id']))}">删除</a>
                        <a class="" href="{:addons_url('Slide://Slide/editpic',array('id'=>$v['id']))}">编辑</a>
                    </td>
                </tr>




                <?php } ?>
            </table>
        </div>
        <!-- 分页 -->
        <div class="page">
        </div>

    </div>
</block>